package com.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 刷新客户端指令
 *  用postman 发送请求
 *  http://127.0.0.1:9999/actuator/refresh
 *
 */

@RestController
@RefreshScope
public class ClientController {

    @Value("${age}")
    private String age;


    @RequestMapping("/hello")
    public String hello(){
        return "hello,world,:"+age;
    }

}
